-
Notifications
You must be signed in to change notification settings - Fork 30
Fix sort for size 1 axes #2106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Fix sort for size 1 axes #2106
Conversation
View rendered docs @ https://intelpython.github.io/dpctl/pulls/2106/index.html |
Array API standard conformance tests for dpctl=0.21.0dev0=py310h93fe807_16 ran successfully. |
6344d94
to
1838afa
Compare
Array API standard conformance tests for dpctl=0.21.0dev0=py310h93fe807_21 ran successfully. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @ndgrigorian for catching and resolving that
1838afa
to
0cf8e0f
Compare
…ms when sorting a size-1 axis
Array API standard conformance tests for dpctl=0.21.0dev0=py310h93fe807_53 ran successfully. |
@antonwolfy |
Array API standard conformance tests for dpctl=0.21.0dev0=py310h93fe807_54 ran successfully. |
Some sorting algorithms used (in particular
radix_sort
) assert that elements to be sorted must be greater than 1, and this can cause failures in debug builds, like coverageThis PR proposes a fix: copy in sort and memset to 0 in argsort when
sort_nelems
is 1